.box {
  width: 100px;
  height: 100px;
  border-radius: 20px;
  background-color: aqua;
  position: relative;
  right: 0;
  animation: right 5s infinite;
}

@keyframes right {
  50% {
    right: -100px;
  }
}